package com.aoxin.model.attendance;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 上课记录
 * 
 * @author Melody
 * @date 2018年3月28日 下午2:41:00
 */
public class SlfClassRecord {
	/**
	 * key
	 */
	private String key;
	/**
	 * 上课记录ID
	 */
	private Integer recordId;
	/**
	 * 学校ID
	 */
	private Integer compusId;
	/**
	 * 学校名称
	 */
	private String compusName;
	/**
	 * 教室ID
	 */
	private Integer classroomId;
	/**
	 * 教室名称
	 */
	private String classroomName;
	/**
	 * 班级ID
	 */
	private Integer classId;
	/**
	 * 班级名称
	 */
	private String className;
	/**
	 * 用户ID
	 */
	private Integer userId;
	/**
	 * 用户名称
	 */
	private String userName;
	/**
	 * 孩子ID
	 */
	private Integer childrenId;
	/**
	 * 孩子名称
	 */
	private String childrenName;
	/**
	 * 课程ID
	 */
	private Integer courseId;
	/**
	 * 课程名称
	 */
	private String courseName;
	/**
	 * 预约课程时间
	 */
	private Date orderDate;
	/**
	 * 考勤状态
	 */
	private Integer attendance;
	/**
	 * 创建时间
	 */
	private Date createDate;
	/**
	 * 课表ID
	 */
	private Integer syllabusId;
	/**
	 * 创建时间
	 */
	private String createDateStr;

	public Integer getRecordId() {
		return recordId;
	}

	public void setRecordId(Integer recordId) {
		this.recordId = recordId;
		this.key = String.valueOf(recordId);
	}

	public Integer getCompusId() {
		return compusId;
	}

	public void setCompusId(Integer compusId) {
		this.compusId = compusId;
	}

	public String getCompusName() {
		return compusName;
	}

	public void setCompusName(String compusName) {
		this.compusName = compusName == null ? null : compusName.trim();
	}

	public Integer getClassroomId() {
		return classroomId;
	}

	public void setClassroomId(Integer classroomId) {
		this.classroomId = classroomId;
	}

	public String getClassroomName() {
		return classroomName;
	}

	public void setClassroomName(String classroomName) {
		this.classroomName = classroomName == null ? null : classroomName.trim();
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className == null ? null : className.trim();
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public Integer getChildrenId() {
		return childrenId;
	}

	public void setChildrenId(Integer childrenId) {
		this.childrenId = childrenId;
	}

	public String getChildrenName() {
		return childrenName;
	}

	public void setChildrenName(String childrenName) {
		this.childrenName = childrenName == null ? null : childrenName.trim();
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName == null ? null : courseName.trim();
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public Integer getAttendance() {
		return attendance;
	}

	public void setAttendance(Integer attendance) {
		this.attendance = attendance;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		this.createDateStr = sdf.format(createDate);
		this.createDate = createDate;
	}

	public Integer getSyllabusId() {
		return syllabusId;
	}

	public void setSyllabusId(Integer syllabusId) {
		this.syllabusId = syllabusId;
	}

	public String getCreateDateStr() {
		return createDateStr;
	}

	public void setCreateDateStr(String createDateStr) {
		this.createDateStr = createDateStr;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
}